﻿package com.eve.eplus.common.app;

/**
 * 系统通用常量
 * 
 * @author Norsie
 * @create 12-11-28
 */
public class Constants
{

    /*** 建议：如果用到自定义的int类型数字 请从100开始往下续，避免冲突 ***/
    
    /** 无网络连接 */
    public static final int NETWORK_TYPE_NONE = -1;
    public static final String NETWORK_TYPE_NONE_MSG = "无网络";

    /** 通过WIFI连接网络 */
    public static final int NETWORK_TYPE_WIFI = 0;
    public static final String NETWORK_TYPE_WIFI_MSG = "WIFI网络";

    /** 通过低速网络连接网络 */
    public static final int NETWORK_TYPE_LOW = 1;
    public static final String NETWORK_TYPE_LOW_MSG = "低速网络";

    /** 通过高速网络连接网络 */
    public static final int NETWORK_TYPE_HIGH = 2;
    public static final String NETWORK_TYPE_HIGH_MSG = "高速网络";

    /** 数据库的版本 **/
    public static final int DATABASE_VERSION = 1;

    /** Message Code 通用 **/
    public static final int MSG_OK = 0;
    public static final int MSG_ERROR = -1;

    /** Message Code 专用 请从100开始编号,并且做好分类标示和注释 **/
    public static final int MSG_TIMELINE_OK = 100;
    public static final int MSG_TIMELINE_ERROR = -100;

    public static final int MSG_WEIBO_TIMELINE_OK = 200;
    public static final int MSG_WEIBO_TIMELINE_ERROR = -200;
    public static final int MSG_WEIBO_USERSHOW_OK = 201;
    public static final int MSG_WEIBO_USERSHOW_ERROR = -201;
    public static final int MSG_WEIBO_UPDATE_OK = 202;
    public static final int MSG_WEIBO_UPDATE_ERROR = -202;
    public static final int MSG_WEIBO_UPLOAD_OK = 203;
    public static final int MSG_WEIBO_UPLOAD_ERROR = -203;

    /** 字体大小 小 中 大 **/
    public static final int FONT_SIZE_SMALL = 15;
    public static final int FONT_SIZE_NORMAL = 17;
    public static final int FONT_SIZE_BIG = 19;

    /*** 以下是自定义的其他类型 ***/
    /**保存微薄草稿标签**/
    public static final String SAVED_MSG = "saved_msg";
    
    /**前夕网络新浪微博uid**/
    public static final String EVE_UID = "3214722834";
    
    /** 登陆状态 True 记住密码登陆 False 没有记住密码登陆 **/
    public static final String LOGIN_STATE = "Login_State";
    /** 记住密码登陆时间 **/
    public static final String REMEMBER_PASSWD_TIME = "Remember_Passwd_Time";
    /** 第一次登陆时间 **/
    public static final String FIRST_LOGIN_TIME = "First_Login_Time";

    /** 新浪微博 APPKEY **/
    public static final String SINA_CONSUMER_KEY = "3100739515";
    /** 新浪微博 认证回调地址 **/
    public static final String SINA_REDIRECT_URL = "https://api.weibo.com/oauth2/default.html";

    /** 人人网 APPKEY **/
    public static final String RENREN_API_KEY = "939de35049a84fc7b2953229fb1997ba";
    /** 人人网 Secret Key **/
    public static final String RENREN_SECRET_KEY = "67756a45d7834900b6e0f142551dfbca";
    /** 人人网 APP ID **/
    public static final String RENREN_APP_ID = "212034";
    /** 人人网 Redirect Uri **/
    public static final String RENREN_REDIRECT_URL = "http://graph.renren.com/oauth/login_success.html";

    /** 腾讯微博 APPKEY **/
    public static final String TENCENT_APP_KEY = "801191756";
    /** 腾讯微博 Secret Key **/
    public static final String TENCENT_APP_SECRET = "bde71bcef048a40799dccd5c05f2ea98";
    /** 腾讯微博 oauthCallback **/
    public static final String TENCENT_OAUTHCALLBACK = "http://www.anzhi.com/intro.php?softid=366053";

    /** 社交帐号类型 **/
    public static final String SNSTYPE = "snstype";

    /** 社交帐号类型 新浪微博 **/
    public static final String SNSTYPE_SINA = "sina";

    /** 社交帐号类型 腾讯微博博 **/
    public static final String SNSTYPE_TENCENT = "tencent";

    /** 社交帐号类型 人人网 **/
    public static final String SNSTYPE_RENREN = "renren";

    /** 社交帐号类型 微信 **/
    public static final String SNSTYPE_WEIXIN = "weixin";

    /** Account 模型标识 **/
    public static final String ACCOUNT_ID = "account_id";

    public static final String ACCESS_TOKEN = "access_token";

    public static final String EXPIRES_IN = "expires_in";

    public static final String OVERTIME = "overtime";

    public static final String SNS_ACCOUNT_NAME = "name";

    public static final String SNS_ACCOUNT_PROFILE = "profile";

    public static final String SNS_UID = "uid";

    public static final String SNS_ACCOUNT_INDEX = "index";
    
    /** 微博发送TAG **/
    public static final String SNS_SEND_CONTENT="content";
    
    public static final String SNS_SEND_PICURI="picuri";
    
    /** 来源标识 用于Activity传递时，识别来源的TAG **/
    public static final String ACTIVITY_SOURCE = "source";
    
    public static final String ACTIVITY_SOURCE_SETACTIVITY="SetActivity";
    
    public static final String ACTIVITY_SOURCE_ACCOUNTACTIVITY="AccountManagerActivity";
    
    /** 目标标识 用于Activity传递时，识别目标的TAG **/
    public static final String ACTIVITY_TARGET = "target";
    
    public static final String ACTIVITY_TARGET_HOMEACTIVITY="HomeActivity";
    
    /**homeActivity中的item项数据Tag**/
    public static final String HOME_CONTENT="home_content";

}
